<!DOCTYPE html>
<html class="no-js" lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <title>办公室装修_办公装修_办公装饰_上海简单办公装修_专卖店装修_公装无忧官网</title>
    <meta name="description" content="办公室装修_办公装修_办公装饰_上海简单办公装修_专卖店装修_公装无忧官网"/>
    <meta name="keywords" content="装修报价，在线报价，在线装修报价"/>
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <link rel="shortcut icon" href="http://www.zxjmy.com/static/images/icon/logo.ico">

    <!--<meta name="renderer" content="webkit">-->

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/header.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/footer.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/ask_quisition.css">
    <script src="__PUBLIC__/js/jquery-1.2.6.min.js"></script>
    <script src="__PUBLIC__/js/header.js"></script>


</head>
<body>
<div class="headk">
    <div class="head">
        <div class="floatleft">您好<a href="__MODULE__/Usercenter/index"><b style="color:red;">{$_SESSION["username"]}</b></a>，欢迎来到金蚂蚁装修网！<span>{$data}<a href="{:U('Home/City/index')}">【切换】</a></span></div>
        <div class="floatright">
        <?php 
if($_SESSION["id"]){?>
   <a href="__MODULE__/Usercenter/index"><b style="color:red;">进入个人中心</b></a> | <a href="__MODULE__/Zxwd/layout">注销</a>
<?php }else{ ?>
<a href="{:U('Home/Login/index')}">您还未登陆,点击登陆</a>
<?php }?>
            |<a href="{:U('Home/Register/ownreg')}">个人注册</a>|<a href="{:U('Home/Register/comreg')}">装修公司注册</a>
            |<a href="{:U('Zxwd/index')}">装修问答</a>|
            <span>服务热线:400-0606-129</span>
        </div>
    </div>
</div>
<div class="topbigdiv" bigheight="132" smallheight="103">
    <div class="top">
        <div class="logo">
            <a href="http://www.zxjmy.com">
                <img
                        src="__PUBLIC__/images/logo.png"
                        height="90">
            </a>
        </div>
        <include file="Public:read"/>
    </div>
</div>
<div class="topbigdivbg"></div>
<section>
    <div class="container clearfix">
        <div class="ask_fill_form mod_form">
            <div class="fill_hd clearfix">
                <h2>一句话简要描述您的问题：</h2>

                <div class="fill_hdr">
                    <ul>
                        <li><em>2万</em>家正规装修公司</li>
                        <li><em>100万</em>金蚂蚁网友帮您10分钟找到答案</li>
                    </ul>
                </div>
            </div>
            <iframe src="" name="send" id="send" style="display:none;"></iframe>
            <form action="__URL__/tianjia" method="post"  class="border" id="ask_question"
                  target="send">
                <div class="fill_bd">
                    <div class="form_line clearfix">
                        <label for="" class="label fill_label">问题标题</label>
                        <div class="element">
                            <div class="text_wrap">
                                <input id="title" name="title" type="text" class="text"
                                       placeholder="完整的说出您遇到的问题，例如：抽油烟机的烟管不够长怎么办？">
                            </div>

                        </div>
                    </div>
                    <div class="form_line clearfix">
                        <label for="" class="label textarea_label">问题补充<br>（选填）</label>
                        <div class="element">
                            <div class="text_wrap">
                                <textarea name="buchong" id="content" class="fill_area"
                                          placeholder="详细说明问题的情况，可获得更准确的回答！"></textarea>

                            </div>

                        </div>
                    </div>

                    <div class="form_line clearfix ">
                        <label for="" class="label">问题分类</label>
                        <div class="element">
                            <select name="fid" id="type_pid"
                                   style="border-color: rgb(221, 221, 221);">
                            <option>-请选择-</option>
                            <foreach name="arr" item="v">
                            <option name="fid"  value="{$v.fid}" id="fid">{$v.fenlei}</option>
                            </foreach>             
                        </select>
                         <script>
                                 $('#type_pid').change(function () {
                                    console.log($("#type_pid").val())
                                var fid=$("#type_pid").val();
                                    $.ajax({
                                       type: "POST",
                                       dataType: 'json',
                                       url: '__CONTROLLER__/change',
                                       data: {
                                         fid:fid
                                       },
                                       success: function (data) {
                                        console.log(data) 
                                         $("#type_id").empty().append(data) 
                                       },
                                       error: function () {
                                       }
                                   })
                                })
                         </script>     
                            <select name="name" id="type_id" style="border-color: rgb(221, 221, 221);">
                                <option value="0">请选择</option>
                                
                            </select></div>
                    </div>
                    <div class="form_line form_line_btn clearfix">
                        <div class="element">
                            <input type="submit" class="fill_btn" value="提交问题">
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
<include file="Public:foot"/>

<script>
    var ask_select = new Array();
    ask_select[0] = new Array("-请选择-");
    ask_select[2] = new Array("装修风水", "装修风格", "客厅", "玄关", "过道", "卧室", "书房", "餐厅", "厨房", "阳台", "花园", "卫生间", "儿童房", "衣帽间", "别墅", "小户型", "二手房装修", "复式", "样板间", "装饰柜", "其他");
    ask_select[3] = new Array("新房验收", "收费咨询", "装修预算", "装修合同", "施工工艺", "业主维权", "环保检测", "装修公司", "完工验收", "水电改造", "维护保养", "-请选择-");
    ask_select[4] = new Array("家具", "卫浴设备", "灯具/照明", "儿童家具/用品", "家用电器", "橱柜", "厨卫电器", "厨房用具", "地毯", "饰品", "庭院/花园", "暖气设备", "家庭影院", "壁炉/火炉", "天花板/吊顶", "床上用品", "窗帘/配件", "日杂用品", "其他", "家居生活", "婚嫁");
    ask_select[5] = new Array("夹板木材", "地板", "涂料/油漆", "瓷砖/石材", "门窗", "五金", "壁纸", "水龙头", "建筑构件", "管材管件", "其他");
    ask_select[6] = new Array("办公楼", "商场", "专卖店", "酒店宾馆/客房", "餐饮酒吧", "歌舞迪厅", "休闲健身", "体育场馆", "会展剧场", "博物馆", "图书馆", "学校", "医院", "机场车船站", "工厂", "公园广场", "会所", "园林", "其他");


    function changeAsks(pid, id) {
        var iPid = $(pid).value;
        var ilen = ask_select[iPid].length;
        $(id).length = ilen;
        for (var i = 0; i < ilen; i++) {
            $(id).options[i].value = i;
            $(id).options[i].text = ask_select[iPid][i];
        }
        $(id).options[0].selected = "selected";
    }

</script>
</body>
</html>